/////////////////////////////////////////////////////////////////////////////
// Name:        WelcomePage.cpp
// Purpose:     
// Author:      yospaly
// Modified by: 
// Created:     05/01/2010 09:51:26
// RCS-ID:      
// Copyright:   Copyright (C) 2008, yospaly
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "WelcomePage.h"

////@begin XPM images

////@end XPM images


/*!
 * WelcomePage type definition
 */

IMPLEMENT_DYNAMIC_CLASS( WelcomePage, wxWizardPageSimple )


/*!
 * WelcomePage event table definition
 */

BEGIN_EVENT_TABLE( WelcomePage, wxWizardPageSimple )

////@begin WelcomePage event table entries
////@end WelcomePage event table entries

END_EVENT_TABLE()


/*!
 * WelcomePage constructors
 */

WelcomePage::WelcomePage()
{
    Init();
}

WelcomePage::WelcomePage( wxWizard* parent )
{
    Init();
    Create( parent );
}


/*!
 * WelcomePage creator
 */

bool WelcomePage::Create( wxWizard* parent )
{
////@begin WelcomePage creation
    wxBitmap wizardBitmap(wxNullBitmap);
    wxWizardPageSimple::Create( parent, NULL, NULL, wizardBitmap );

    CreateControls();
////@end WelcomePage creation
    return true;
}


/*!
 * WelcomePage destructor
 */

WelcomePage::~WelcomePage()
{
////@begin WelcomePage destruction
////@end WelcomePage destruction
}


/*!
 * Member initialisation
 */

void WelcomePage::Init()
{
////@begin WelcomePage member initialisation
////@end WelcomePage member initialisation
}


/*!
 * Control creation for WelcomePage
 */

void WelcomePage::CreateControls()
{    
////@begin WelcomePage content construction
    WelcomePage* itemWizardPageSimple1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
    itemWizardPageSimple1->SetSizer(itemBoxSizer2);

    wxStaticText* itemStaticText3 = new wxStaticText( itemWizardPageSimple1, wxID_STATIC, _("Cygwin Setup Wizard"), wxDefaultPosition, wxDefaultSize, 0 );
    itemStaticText3->SetFont(wxFont(16, wxSWISS, wxNORMAL, wxBOLD, false, wxT("Tahoma")));
    itemBoxSizer2->Add(itemStaticText3, 0, wxGROW|wxALL, 5);

    wxStaticText* itemStaticText4 = new wxStaticText( itemWizardPageSimple1, wxID_STATIC, _("This setup wizard is used for initial installation of the Cygwin environment.\n\nThis wizard will guide you through the installation. Please note that Cygwin consists of a large number of packages spanning a wide variety of purposes.\n\nWe only install a base set of packages by default."), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE );
    itemStaticText4->Wrap(400);
    itemBoxSizer2->Add(itemStaticText4, 1, wxGROW|wxALL, 5);

    wxStaticBitmap* itemStaticBitmap5 = new wxStaticBitmap( itemWizardPageSimple1, wxID_STATIC, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer2->Add(itemStaticBitmap5, 0, wxALIGN_LEFT|wxALL, 5);

    wxStaticText* itemStaticText6 = new wxStaticText( itemWizardPageSimple1, wxID_STATIC, _("Equal to setup.exe version 2.673"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer2->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALL, 5);

    wxStaticText* itemStaticText7 = new wxStaticText( itemWizardPageSimple1, wxID_STATIC, _("Copyright 2009"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer2->Add(itemStaticText7, 0, wxALIGN_LEFT|wxALL, 5);

    wxHyperlinkCtrl* itemHyperlinkCtrl8 = new wxHyperlinkCtrl( itemWizardPageSimple1, ID_HYPERLINKCTRL, _("http://citrus.googlecode.com"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
    itemBoxSizer2->Add(itemHyperlinkCtrl8, 0, wxALIGN_LEFT|wxALL, 5);

////@end WelcomePage content construction
}


/*!
 * Should we show tooltips?
 */

bool WelcomePage::ShowToolTips()
{
    return true;
}

/*!
 * Get bitmap resources
 */

wxBitmap WelcomePage::GetBitmapResource( const wxString& name )
{
    // Bitmap retrieval
////@begin WelcomePage bitmap retrieval
    wxUnusedVar(name);
    return wxNullBitmap;
////@end WelcomePage bitmap retrieval
}

/*!
 * Get icon resources
 */

wxIcon WelcomePage::GetIconResource( const wxString& name )
{
    // Icon retrieval
////@begin WelcomePage icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end WelcomePage icon retrieval
}
